package com.alibaba.system.listener;

import com.alibaba.system.service.IPermissionService;
import org.springframework.beans.factory.annotation.Autowired;

import javax.servlet.ServletContextEvent;
import javax.servlet.ServletContextListener;
import javax.servlet.annotation.WebListener;

@WebListener
public class permission implements ServletContextListener {


    @Autowired
    private IPermissionService permissionService;


    @Override
    public void contextInitialized(ServletContextEvent servletContextEvent) {
        permissionService.scanPermission();
    }

    @Override
    public void contextDestroyed(ServletContextEvent servletContextEvent) {

    }
}
